/**
 * Created by Killer on 2015/12/30.
 */
var user;
$(document).ready(function () {
    //检测是否已经登陆，防止重复登陆

    $.ajax({
        url: "/fallwings/login/checkLogin",
        type: "get",
        statusCode: {
            200: function (data) {
                user=data;
            },
            401: function () {
                window.location.href = "/fallwings/login.html";
            }
        }
    });
    $("#navigation_bar").load("/fallwings/static/index/navigation_bar.html");//主页引入导航页面
    $("#carousel_picture").load("/fallwings/static/index/carousel_picture.html");//主页引入巨幕图片页面
    $("#cartoon_div").load("/fallwings/static/cartoon/cartoon.html");
    $("#tv_div").load("/fallwings/static/tv/TV.html");


});
